package com.lagou.sqlSession;

import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

    public <E> List<E> query(MappedStatement mappedStatement,Object... params) throws Exception;
    public int insert(MappedStatement mappedStatement,Object... params) throws Exception;
    public int update(MappedStatement mappedStatement,Object... params) throws Exception;
    public int delete(MappedStatement mappedStatement,Object... params) throws Exception;
    public void close() throws SQLException;

}
